package com.itgaoshu.springboot_day01;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
     * 项目的主入口类
     */
@MapperScan("com.itgaoshu.springboot_day01.mapper") //创建指定包下所有mapper接口代理对象
    @SpringBootApplication  //因为@SpringBootApplication注解包含了@ComponentScan注解(扫描包)，扫描范围项目主入口类的子级目录
//所以项目代码 必须在主入口类的子级目录下才会被加载
@EnableCaching //开启注解缓存
    public class SpringbootDay01Application {

        public static void main(String[] args) {
            SpringApplication.run(SpringbootDay01Application.class, args);
        }

}
